namespace DigitalCv.Desktop.ViewModels
{
    using Caliburn.Micro;

    using DigitalCv.Data;

    public class DigitalCvViewModel : Conductor<IScreen>
    {        
        public DigitalCvViewModel(Cv cv)
        {
            this.Cv = cv;
        }

        public Cv Cv { get; private set; }

        public void ShowTechnologies()
        {
            this.ActivateItem(new TechnologyViewModel(this.Cv.Technologies));
        }

        public void ShowTools()
        {
            this.ActivateItem(new ToolsViewModel(this.Cv.Tools));
        }

        public void ShowPractices()
        {
            this.ActivateItem(new PracticesViewModel(this.Cv.Practices));
        }
    }
}